home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_inf_testhorse.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  54 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_Avalanche.cog
  4. #
  5. # This cog will createa minor cave-in effect if a switch is presed
  6. # Update will be made for IMP#1. Chris M. 12/1/97
  7. #
  8. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  9. # =========================================================
  10. symbols
  11.  
  12. message        startup
  13.  
  14. thing       horseman
  15. thing       clamps
  16. thing       movetgt
  17.  
  18. keyframe    mr_wingkey=0mr_plugin.key               local
  19. keyframe    mr_clampkeys=inf_robot_stand.key        local
  20. keyframe    head_on_anim=0mr_headon.key             local
  21.  
  22. end
  23.  
  24. code
  25.  
  26. #..........................................................
  27.  
  28. startup:
  29.     
  30.     SetCollideType(horseman, 0);
  31.     AISetMoveSpeed(horseman, 0.75);
  32.     sleep(5);
  33.     AISetMoveFrame(horseman, 1);
  34.     //AISetMoveThing(horseman, movetgt, 0);
  35.     AIWaitForStop(horseman);
  36.     PlayKey(horseman, head_on_anim, 4, 0x14, 0);
  37.     Sleep(3);
  38.     PlayKey(horseman, mr_wingkey, 4, 0x14, 0);
  39.     PlayKey(clamps, mr_clampkeys, 4, 0x14, 0);
  40.     Sleep(5);
  41.     //StopThing(horseman);
  42.     print("I've stopped");
  43.     
  44. return;
  45.  
  46. #..........................................................
  47.  
  48. end
  49.     
  50.  
  51.  
  52.  
  53.  
  54.